#include <iostream>
#include <cmath>
using namespace std;

void H(int n, int row, int pos){
	if (n == 1 && row == 1){
		if (pos == 1){
			cout << "+1 +1 ";
		}
		else {
			cout << "-1 -1";
		}
		return;
	}
	if (n == 1 && row == 2){
		if (pos == 1){
			cout << "+1 -1 ";
		}
		else {
			cout << "-1 +1 ";
		}
		return;
	}
	if (row <= pow(2, n) / 2){
		H(n-1, row, pos);
		H(n-1, row, pos);
	}
	else {
		H(n-1, row - pow(2, n) / 2, pos);
		H(n-1, row - pow(2, n) / 2, -pos);
	}
}

int main(){
	int n;
	cin >> n;
	int result[101][101];
	int line = pow(2, n);
	int row = line;
	for (int i = 1; i <= row; i++){
		H(n, i, 1);
		cout << endl;
	}
}
